from PyQt5.QtCore import QElapsedTimer
from time import sleep

nowtime = QElapsedTimer()
nowtime.start()
sleep(5)
e = nowtime.elapsed()
print(e)